#include "reg52.h"

typedef unsigned int uint16_t;
typedef unsigned char uint8_t;
	

sbit Buzzer = P2^0;

void Delay(uint16_t t)
{
	while(t--)
	{
		;
	}
}
int main(void)
{
//	Buzzer = 1;
	
	while(1)
	{
		Buzzer = 1;
		Delay(100);
		Buzzer = 0;
		Delay(100);
	
	}
}

//#include "reg52.h"

//typedef unsigned int uint16_t;
//typedef unsigned char uint8_t;

//sbit Buzzer = P2^5;

//void Delay(uint16_t t)
//{
//	while(t--);
//}
//int main()
//{
//	while(1)
//	{
//		Buzzer = 1;
//		Delay(500);
//		Buzzer = 0;
//		Delay(500);
//	}
//}